package com.hjq.mallproduct.dao;

import com.hjq.mallproduct.entity.AttrAttrgroupRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hjq.mallproduct.entity.vo.AttrRelationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性&属性分组关联
 * 
 * @author Hjq
 * @email 1484397309@qq.com.com
 * @date 2022-05-24 13:33:42
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    void updateByAttrId(@Param("attrId") Long attrId,@Param("attrGroupId") Long attrGroupId);
    void deleteBatchByAttrRelation(@Param("attrRelationVOList") List<AttrRelationVO> attrRelationVOList);

    void saveAttrAttrgroupRelationBatch(@Param("relationEntities") List<AttrAttrgroupRelationEntity> relationEntities);
}
